home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / DRAGON.ZIP / dragon / example1.pov < prev    next >
Encoding:
Text File  |  1997-07-18  |  592 b   |  39 lines

  1. #include "colors.inc"
  2.  
  3.  
  4. light_source { <10 , 20, -10> color White }
  5. light_source { <30 , 5, -10> color White }
  6. light_source { <3 , 4, -15> color White }
  7. light_source { <0 , 20, 0> color White }
  8.  
  9. camera {
  10.   location <0 , 0, -40>
  11.   look_at  <0 , 0, 0>
  12. }
  13.  
  14. background {color Gray30}
  15.  
  16. #declare DRAGON_DEPTH = 10
  17. #declare DRAGON_ANGLE = 90
  18.  
  19. // Number of Segments is pow(2,DRAGON_DEPTH)
  20. #declare DRAGON_UPTO = pow(2,DRAGON_DEPTH)-1
  21.  
  22. object {
  23.    #include "dragon.inc"
  24.    pigment {color Red}
  25.    translate <-DRAGON_LASTX/2, -DRAGON_LASTY/2, 0>
  26.    rotate <0, 0, 90>
  27.    translate <-3, -5, 0>
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.